import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const store = new Vuex.Store({
  state: {
    user:false
  },
  mutations: {
   // login
   login(state,user){
     state.user=user
   },
   logout(state,user){
     state.user=false
   }
  },
  actions: {

  }
})

export default store
